package com.xiezc.dao

import redis.clients.jedis.Jedis


/**
 * @author wb-xzc291800
 * @date 2017/11/01 10:50
 */
class RedisDao {

    //连接本地的 Redis 服务
    val jedis = Jedis("localhost")


    fun set(key: String, value: String): String {
        return jedis.set(key, value)
    }

    fun lpush(key: String, value: String): Long {
        return jedis.lpush(key, value);
    }


}